/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.modulars.contract.contractinfo.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.core.base.entity.BaseEntity;

/**
 * 会员合同 Entity
 *
 * @author 17607080935
 * @date 2025-07-07 16:42:16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Contract extends BaseEntity {


    /** 合同唯一编号 */
    private String contractId;

    /** 学生id */
    private String studentId;

    /** 客户id */
    private String customerId;

    /** 课程id */
    private String courseId;

    /** 签约时间 */
    private Date signDate;

    /** 生效时间 */
    private Date startDate;

    /** 失效时间 */
    private Date endDate;

    /** 合同金额 */
    private BigDecimal totalAmount;

    /** 优惠金额 */
    private BigDecimal discountAmount;

    /** 课时 */
    private Integer lessonsNumber;

    /** 赠送课时 */
    private Integer freeLessons;

    /** 状态 */
    private String status;

    /** 付款类型(一次性，分期) */
    private String paymentMethod;

    /** 付款方式 */
    private String payType;

    /** 已上课时 */
    private Integer attendedLessons;

    /** 已排课时 */
    private Integer scheduledLessons;

    /** ​​剩余课时 */
    private Integer remainingLessons;

    /** 父级主键集合 */
    private String orgIds;


    // ========================================



















    /** 多租户字段 */
    private String tenantId;

    /** 逻辑删除字段 */
    @TableLogic
    private Integer deleted;


}